package littlewhisker.components.ui.button {

	import flash.events.MouseEvent;
	import flash.events.IEventDispatcher;
	import flash.events.Event;
	import flash.display.Sprite;
	/**
	 * @author Philip
	 */
	public class TickBox extends AbstractButton {
		
		private var _state:Boolean;
		
		public function get state() : Boolean {
			return _state;
		}
		
		public function set state(state : Boolean) : void {
			_state = state;
		}
		
		override protected function onClick( event:MouseEvent ):void{
			super.onClick(event);
			state ? state = false : state = true;
		}
		
	}
}
